//
//  UserInfo.swift
//  xiaoqiao
//
//  Created by 冷子豪 on 2017/7/6.
//  Copyright © 2017年 冷子豪. All rights reserved.
//

import UIKit

var theUser = UserInfo()

class UserInfo{
    
    //id
    var id:Int?
    /// 用户ID
    var userid:Int?
    /// 性别
    var sex:String?
    /// 年龄
    var age:Int?
    /// 城市
    var cityofinfo:String?
    /// 收入
    var income:String?
    /// 家庭月收入
    var incomeOfHome:String?
    /// 婚姻
    var marriage:String?
    /// 健康
    var health:String?
    /// 学历
    var education:String?
    /// 子女
    var countOfChildren:Int?
    /// 住宅（住址）
    var house_id:Int?
    /// 车辆
    var vehicle_id:Int?
    /// 工作单位
    var companyOfNature:String?
    /// 开始工作时间
    var startOfWork:Date?
    /// 入职时间
    var hiredate:Date?
    /// 工作年限
    var ageOfWork:String?
    /// 职位
    var position:String?
    /// 专业技能
    var professionalSkill:String?
    /// 银行账户
    var stateOfbankOfCount:String?
    /// 社保信息
    var stateOfSheBao:String?
    /// 信用卡
    var creditCard:Double?
    /// 担保
    var guarantee:Double?
    /// 法律诉讼
    var litigation:String?
    /// 贷款记录
    var loan:String?
    /// 通讯录
    var contactsOfFriends:Int?
    /// 投资用途
    var investmentUse:String?
    /// 网购记录
    var onlineShoppingRecord:String?
    /// 个人征信查询
    var personalCreditInquiry:String?
    /// 配偶
    var wife:Int?
    /// 预估额度
    var estimatedLoan:Double?
    /// 状态
    var status:String?
    /// 创建时间
    var createtime:Date?
    /// 更新时间
    var updatetime:Date?

    func estimateLoan() -> Double {
        estimatedLoan = 10000.0
        return 10000.0
    }
    
}
